const fs = require('fs')
const path = require('path')
let inputStr = process.argv[2]

function readFile(fileName){
    fs.readFile(path.join(__dirname,fileName),(err,data)=>{
        console.log(data.toString().split(/\s+/).length)
    })
}

readFile(inputStr)